Concatenate several copies of a varying string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(varying_string), | intent(in) | :: | string | |||
integer, | intent(in) | :: | ncopies |
elemental function repeat_ (string, ncopies) result (repeat_string) type(varying_string), intent(in) :: string integer, intent(in) :: ncopies type(varying_string) :: repeat_string repeat_string = var_str(REPEAT(char(string), ncopies)) ! Finish return end function repeat_